<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				bnkNo : {
					required : true
				},
				bnkName : {
					required : true
				},
				bnkType : {
					required : true
				},
				bnkEdc : {
					required : false
				},
				bnkMer : {
					required : true
				},
				bnkTer : {
					required : true
				},
				bnkAuth : {
					required : true
				},
				bnkKey : {
					required : true
				},
				bnkBill : {
					required : true
				},
				bnkPart : {
					required : true
				},
				bnkFake : {
					required : true
				},
				bnkDate : {
					required : true
				}
			},
			errorPlacement : function(error, element) {
				element.css("border-color", "#1c3e57");
			},
		});
	});
</script>
</head>
<body>
	<div class="easyui-panel" title="编辑面板" style="width: 100%;" data-options="fit:true">
		<form id="sform" action="bank_save.html" method="post" enctype="multipart/form-data">
			<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">编号 :</td>
					<td><input type="text" placeholder="编号" name="bnkNo" id="bnkNo" value="<s:property value="bankBean.bnkNo"/>" /></td>
					<td>收单行编号,前三位为银行类型,后三位为EDC或DCC标志,最后四位为序号</td>
				</tr>
				<tr>
					<td height="30" align="right">银行名称 :</td>
					<td><input type="text" placeholder="银行名称" name="bnkName" id="bnkName" value="<s:property value="bankBean.bnkName"/>"  style="width: 240px;"/></td>
					<td>收单行的名称</td>
				</tr>
				<tr>
					<td height="30" align="right">类型 :</td>
					<td><s:select id="bnkType" name="bnkType" list="#{'EDC':'EDC','DCC':'DCC'}" value="bankBean.bnkType" /></td>
					<td>收单类型(EDC或DCC)</td>
				</tr>
				<tr>
					<td height="30" align="right">关联商编 :</td>
					<td><input type="text" placeholder="关联商编" name="bnkEdc" id="bnkEdc" value="<s:property value="bankBean.bnkEdc"/>" /></td>
					<td>关联EDC的收单通道,在DCC换汇不成功的时候转往EDC收单</td>
				</tr>
				<tr>
					<td height="30" align="right">商编 :</td>
					<td><input type="text" placeholder="商编" name="bnkMer" id="bnkMer" value="<s:property value="bankBean.bnkMer"/>"  style="width: 240px;"/></td>
					<td>在收单行注册的商户编号</td>
				</tr>
				<tr>
					<td height="30" align="right">终端号 :</td>
					<td><input type="text" placeholder="终端号" name="bnkTer" id="bnkTer" value="<s:property value="bankBean.bnkTer"/>" /></td>
					<td>终端号</td>
				</tr>
				<tr>
					<td height="30" align="right">授权号 :</td>
					<td><input type="text" placeholder="授权号" name="bnkAuth" id="bnkAuth" value="<s:property value="bankBean.bnkAuth"/>" /></td>
					<td>授权号</td>
				</tr>
				<tr>
					<td height="30" align="right">key :</td>
					<td><input type="text" placeholder="key" name="bnkKey" id="bnkKey" value="<s:property value="bankBean.bnkKey"/>"  style="width: 240px;"/></td>
					<td>数字密钥</td>
				</tr>
				<tr>
					<td height="30" align="right">账单名称 :</td>
					<td><input type="text" placeholder="账单名称" name="bnkBill" id="bnkBill" value="<s:property value="bankBean.bnkBill"/>"  style="width: 240px;"/></td>
					<td>持卡人收到的账单上的收单机构名称</td>
				</tr>
				<tr>
					<td height="30" align="right">是否支持部分退款 :</td>
					<td><s:radio id="bnkPart" name="bnkPart" list="#{'0':'否','1':'是'}" value="bankBean.bnkPart"></s:radio></td>
					<td>是否支持部分退款</td>
				</tr>
				<tr>
					<td height="30" align="right">是否开启伪站上送 :</td>
					<td><s:radio id="bnkFake" name="bnkFake" list="#{'0':'否','1':'是'}" value="bankBean.bnkFake"></s:radio></td>
					<td>是否开启伪站上送</td>
				</tr>
				<tr>
					<td height="30" align="right">状态 :</td>
					<td><s:radio id="bnkState" name="bnkState" list="#{'0':'无效','1':'有效'}" value="bankBean.bnkState"></s:radio></td>
					<td>可用状态</td>
				</tr>
				<tr>
					<td height="30" align="right">备注 :</td>
					<td><input type="text" placeholder="备注" name="bnkRemark" id="bnkRemark" value="<s:property value="bankBean.bnkRemark"/>"  style="width: 240px;"/></td>
					<td>备注</td>
				</tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>

